package orbito.scene;

import java.awt.Color;
import java.util.Random;

import orbito.entity.Planetoid;
import orbito.entity.PlanetoidFactory;
import orbito.entity.PlanetoidSystem;
import orbito.util.Vec2;

public class BasicOrbitsScene extends PlanetoidSystemTemplateScene {
	protected PlanetoidSystem createSystem(Random rand) {
		Planetoid centroid = new Planetoid("Sun", new Vec2(0, 0), new Vec2(0, 0), 1e30, 1e9, Color.YELLOW, null);
		PlanetoidSystem system = new PlanetoidSystem(centroid);
		system.addChildSystems(new PlanetoidSystem[] {
				new PlanetoidSystem(PlanetoidFactory.generateOrbitingPlanetoid("Blue", 8e24, 8e8, Color.BLUE, centroid, 1e10, false, rand)),
				new PlanetoidSystem(PlanetoidFactory.generateOrbitingPlanetoid("Red", 7e24, 7e8, Color.RED, centroid, 1.5e10, false, rand)),
				new PlanetoidSystem(PlanetoidFactory.generateOrbitingPlanetoid("Green", 6e24, 6e8, Color.GREEN, centroid, 2e10, false, rand))
		});
		return system;
	}
	
	public String getSceneName() {
		return "Basic Orbits";
	}
}
